///**
///* @author hrongyong
///* @date   2/4/21
///* @email hrongyong@gmail.com
///* Description: 双向横条图model
///*/
class TwoWayBarChartModel {
  ///标题
  String title;

  ///显示的数值
  String valueString;

  ///比例
  double proportion;

  TwoWayBarChartModel({this.title, this.valueString, this.proportion = 0.0}) {
    if (proportion != null) {
      if (proportion > 1.0) {
        proportion = 1.0;
      }
      if (proportion < 0.0) {
        proportion = 0.0;
      }
    }
  }
}